
package com.emode.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class regexContent{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1585707610947108429L;
	static Pattern referer_pattern = Pattern.compile("@([^@^\\s^:]{1,})([\\s\\:\\,\\;]{0,1})");//@.+?[\\s:]
	 
	/**
	 * 处理提到某人 @xxxx
	 * @param msg  传入的文本内容
	 * @param referers 传出被引用到的会员名单
	 * @return 返回带有链接的文本内容
	 * 
	 */
	public static String NameLinks(String content){
		 Matcher matchr = referer_pattern.matcher(content);
		    while (matchr.find()) {
		    	 String origion_str = matchr.group();
		    	 String str = origion_str.substring(1, origion_str.length()).trim();
		    	 return str;
		    }
			return null;
		
		
	}
		


	
	
}
